6cb72ff3013b1dc69e401cd679e1aff17ff12a70,plugins/groovy/src/org/jetbrains/plugins/groovy/console/GroovyConsoleResolveScopeProvider.java,GroovyConsoleResolveScopeProvider,getResolveScope,#VirtualFile#Project#,30
Before Change
public GlobalSearchScope getResolveScope(@NotNull VirtualFile file, Project project) {
final GroovyConsoleStateService projectConsole = GroovyConsoleStateService.getInstance(project);
final Module module = projectConsole.getSelectedModule(file);
return module == null || module.isDisposed() ? null : GlobalSearchScope.moduleWithDependenciesAndLibrariesScope(module);
}
}
After Change
final Module module = projectConsole.getSelectedModule(file);
if (module == null || module.isDisposed()) return null;
final GlobalSearchScope moduleScope = GlobalSearchScope.moduleWithDependenciesAndLibrariesScope(module);
if (!GroovyConsoleUtil.hasGroovyAll(module)) {
final List<VirtualFile> bundledGroovyJarRoots = GroovyBundledClassFinder.getBundledGroovyJarRoots();
if (!bundledGroovyJarRoots.isEmpty()) {
return new NonClasspathDirectoriesScope(bundledGroovyJarRoots).uniteWith(moduleScope);
}
}
return moduleScope;
}
}